
document.addEventListener("deviceready", onDeviceReady, false);

function onDeviceReady() {
	select();
}


function select() {
	$.ajax({
		
            type: "GET",		
            url: 'http://192.168.45.67/mobileServer/Json',		
            dataType: "json",		
            success: function(data){
            	
            	alert(data.nombre);
            	/*
                $('<p>').append(		
                    "[Host: "+data.host+"]"		
                ).appendTo('#crossdomain');	
                */	
            },
            error: function (XMLHttpRequest, textStatus, errorThrown) {		
                alert(textStatus + "\n"+ errorThrown);		
            }		
        });
	
	}



